package yunc.checkData.pojo;

public class TitleTide {
    private String thisRecordType;
    private String nextRecordType;
    private String standardVersion;
    private String stationId;
    private String dealNo;
    private String serialNo;
    private String lat;
    private String latMark="N";
    private String lon;
    private String lonMark="E";
    private String recordTime;
    private String timezone="-0800";
    private String instrumentCode;
    private String elevDiff;
    private String elev56;
    private String accuracy;
    private String elevStd;

    public TitleTide() {
    }

    public TitleTide(String thisRecordType, String nextRecordType, String standardVersion, String stationId, String dealNo, String serialNo, String lat, String latMark, String lon, String lonMark, String recordTime, String timezone, String instrumentCode, String elevDiff, String elev56, String accuracy, String elevStd) {
        this.thisRecordType = thisRecordType;
        this.nextRecordType = nextRecordType;
        this.standardVersion = standardVersion;
        this.stationId = stationId;
        this.dealNo = dealNo;
        this.serialNo = serialNo;
        this.lat = lat;
        this.latMark = latMark;
        this.lon = lon;
        this.lonMark = lonMark;
        this.recordTime = recordTime;
        this.timezone = timezone;
        this.instrumentCode = instrumentCode;
        this.elevDiff = elevDiff;
        this.elev56 = elev56;
        this.accuracy = accuracy;
        this.elevStd = elevStd;
    }

    public TitleTide(String title) {
        this.thisRecordType = title.substring(0,1);
        this.nextRecordType = title.substring(1,2);
        this.standardVersion = title.substring(2,3);
        this.stationId = title.substring(3,7);
        this.dealNo = title.substring(7,15);
        this.serialNo = title.substring(15,23);
        this.lat = title.substring(23,25)+"."+title.substring(25,28);
        this.latMark = title.substring(28,29);
        this.lon = title.substring(29,32)+"."+title.substring(32,35);
        this.lonMark = title.substring(35,36);
        this.recordTime = title.substring(36,40)+"-"+title.substring(40,42);
        this.timezone = title.substring(42,47);
        this.instrumentCode = title.substring(47,53);
        this.elevDiff = title.substring(53,60);
        this.elev56 = title.substring(60,65);
        if (title.length()>65){
            this.accuracy = title.substring(65,66);
        }
        if (title.length()>66){
            this.elevStd = title.substring(66);
        }
    }

    public String getThisRecordType() {
        return thisRecordType;
    }

    public void setThisRecordType(String thisRecordType) {
        this.thisRecordType = thisRecordType;
    }

    public String getNextRecordType() {
        return nextRecordType;
    }

    public void setNextRecordType(String nextRecordType) {
        this.nextRecordType = nextRecordType;
    }

    public String getStandardVersion() {
        return standardVersion;
    }

    public void setStandardVersion(String standardVersion) {
        this.standardVersion = standardVersion;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getDealNo() {
        return dealNo;
    }

    public void setDealNo(String dealNo) {
        this.dealNo = dealNo;
    }

    public String getSerialNo() {
        return serialNo;
    }

    public void setSerialNo(String serialNo) {
        this.serialNo = serialNo;
    }

    public String getLat() {
        return lat;
    }

    public void setLat(String lat) {
        this.lat = lat;
    }

    public String getLatMark() {
        return latMark;
    }

    public void setLatMark(String latMark) {
        this.latMark = latMark;
    }

    public String getLon() {
        return lon;
    }

    public void setLon(String lon) {
        this.lon = lon;
    }

    public String getLonMark() {
        return lonMark;
    }

    public void setLonMark(String lonMark) {
        this.lonMark = lonMark;
    }

    public String getRecordTime() {
        return recordTime;
    }

    public void setRecordTime(String recordTime) {
        this.recordTime = recordTime;
    }

    public String getTimezone() {
        return timezone;
    }

    public void setTimezone(String timezone) {
        this.timezone = timezone;
    }

    public String getInstrumentCode() {
        return instrumentCode;
    }

    public void setInstrumentCode(String instrumentCode) {
        this.instrumentCode = instrumentCode;
    }

    public String getElevDiff() {
        return elevDiff;
    }

    public void setElevDiff(String elevDiff) {
        this.elevDiff = elevDiff;
    }

    public String getElev56() {
        return elev56;
    }

    public void setElev56(String elev56) {
        this.elev56 = elev56;
    }

    public String getAccuracy() {
        return accuracy;
    }

    public void setAccuracy(String accuracy) {
        this.accuracy = accuracy;
    }

    public String getElevStd() {
        return elevStd;
    }

    public void setElevStd(String elevStd) {
        this.elevStd = elevStd;
    }

    @Override
    public String toString() {
        return "TitleTide{" +
                "thisRecordType='" + thisRecordType + '\'' +
                ", nextRecordType='" + nextRecordType + '\'' +
                ", standardVersion='" + standardVersion + '\'' +
                ", stationId='" + stationId + '\'' +
                ", dealNo='" + dealNo + '\'' +
                ", serialNo='" + serialNo + '\'' +
                ", lat='" + lat + '\'' +
                ", latMark='" + latMark + '\'' +
                ", lon='" + lon + '\'' +
                ", lonMark='" + lonMark + '\'' +
                ", recordTime='" + recordTime + '\'' +
                ", timezone='" + timezone + '\'' +
                ", instrumentCode='" + instrumentCode + '\'' +
                ", elevDiff='" + elevDiff + '\'' +
                ", elev56='" + elev56 + '\'' +
                ", accuracy='" + accuracy + '\'' +
                ", elevStd='" + elevStd + '\'' +
                '}';
    }
}
